-
Notifications
You must be signed in to change notification settings - Fork 81
Remove caBundle placeholder in CRD webhooks #332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Remove caBundle placeholder in CRD webhooks #332
Conversation
|
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sharath-srikanth-chellappa The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
9821ed5 to
6117185
Compare
|
Apologies for closing it. I needed to reach out for some more details before opening this PR. I have the clarity and this can now be reopened. |
|
thanks @sharath-srikanth-chellappa After looking at it a bit deeper, I'm not sure it's needed. I need to check why these files even exist, when we only have one API version, and we don't need any conversion webhook, that is not implemented anyway. I suspect it's kind of auto generated. |
|
Hi @nunnatsa I agree with the fact that we would not need this autogenerated webhook given that we have a single API version. However we are calling a function to setup webhooks in Thats the reason I had raised the PR to unblock us for the time being while we moved towards removing the support for the webhooks later on |
|
This function creates a validation webhook, not a conversion webhook. So it's not relevant to these files |
|
Aren't the conversion webhooks generated by kubebuilder by the following marker I see this listed as a part of api/v1alpha1/kubevirtcluster_types.go ,api/v1alpha1/kubevirtmachine_types.go and api/v1alpha1/kubevirtmachinetemplate_types.go Please correct me if I am wrong here. |
|
@nunnatsa Do you have any thoughts here. I could put up a new PR to remove the files altogether if that's how you want to do it ? |
What this PR does / why we need it:
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): fixes #331Special notes for your reviewer:
Changes Made:
Starting with Kubernetes v1.31, the API server no longer accepts the newline placeholder (Cg==) as a valid caBundle value, causing webhook registration failures.
As documented in Kubernetes issue #125569, the Kubernetes API server behavior changed to be more strict about caBundle validation.
Release notes: